﻿using iTunesPwned.Core.iTunes;

namespace FileWatcher.Action
{
    public class iTunesAction : ActionBase
    {
        private iTunesPlayer m_player;

        public override string Name
        {
            get { return "iTunes"; }
        }

        public iTunesAction(iTunesPlayer player, bool delete)
            : base(delete)
        {
            this.m_player = player;
        }

        protected override void Action(Node node)
        {
            this.m_player.Add(node.Location);
        }
    }
}